/*  SSEBDuplicateEditPanelController.h
 *  MESLib
 * 
 * Copyright 2003-2009 Starline Software Ltd
 * 
 * This file is part of MESLib.
 * 
 * MESLib is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MESLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with MESLib. If not, see <http://www.gnu.org/licenses/>.
 */
//  Created by Tobias Haughton on Sat Jul 05 2003.
//

#import <AppKit/AppKit.h>
#import "SSEventObject.h"
#import "SSChartDate.h"
#import "SSColoredButtonCell.h"

@interface SSEBDuplicateEditPanelController : NSWindowController {
   IBOutlet id sourceCombobox;
   IBOutlet id actorCombobox;
   IBOutlet id actionCombobox;
   IBOutlet id locationCombobox;
   IBOutlet id objectCombobox;
   IBOutlet id remarkCombobox;
   IBOutlet id beginTimeField;
   IBOutlet id endTimeField;
   IBOutlet id beginDateField;
   IBOutlet id endDateField;
   IBOutlet id labelMatrix;
   IBOutlet id beginTimeCheckBox, endTimeCheckBox;

   SSEventObject *representedObject;
}

+ (id)sharedEBDuplicateEditPanelController;

- (void)showWindowForEvent:(SSEventObject *)event;

- (IBAction)commitData:(id)sender;

- (SSEventObject *)representedObject;
- (void)setRepresentedObject:(SSEventObject *)event;

- (void)setControlValues;

- (SSChartDate *)beginTimeFromFields;
- (SSChartDate *)endTimeFromFields;

@end
